worker_processes  1;

error_log   /var/log/nginx/error.log;
pid        /var/log/nginx/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    gzip  on;

    access_log  /var/log/nginx/access.log;

    server {    
        root /app/ui/;

        location  / {
            index index.html;
            try_files $uri $uri/ /index.html;
        }

        location /api {
            proxy_pass http://121.199.173.92:9534;
        }
    }
}